package com.sf.asp.constants.enumeration;

/**
 * 错误编码
 */
public enum ResponseStatusEnum {

    SUCCESS(0,"成功"),
    FAIL(-1,"获取数据失败"),
    BAD_REQUEST(401,"参数不符合要求"),
    RESOURCE_NOT_FOUNT(404,"没有找到资源"),
    INTERNAL_ERROR(500,"服务器程序错误");

    private Integer code;

    private String message;

    ResponseStatusEnum(int code,String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
